/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.PerformanceFrequencyFacade;
import org.ipti.br.tag.entity.PerformanceFrequency;
import java.io.Serializable;
import java.util.Calendar;
import java.util.List;
import javax.inject.Inject;
import javax.ejb.Stateless;

/**
 *
 * @author root
 */
@Stateless
public class PerformanceFrequencyBO implements Serializable {

    @Inject
    private PerformanceFrequencyFacade performanceFrequencyDAO;

    public PerformanceFrequencyFacade getPerformanceFrequencyDAO() {
        return performanceFrequencyDAO;
    }

    public void create(PerformanceFrequency performanceFrequency) {
        getPerformanceFrequencyDAO().create(performanceFrequency);
    }

    public void edit(PerformanceFrequency performanceFrequency) {
        getPerformanceFrequencyDAO().edit(performanceFrequency);
    }

    public void remove(PerformanceFrequency performanceFrequency) {
        getPerformanceFrequencyDAO().remove(performanceFrequency);
    }

    public PerformanceFrequency find(Object id) {
        return getPerformanceFrequencyDAO().find(id);
    }

    public List<PerformanceFrequency> findAll() {
        return getPerformanceFrequencyDAO().findAll();
    }

    public List<PerformanceFrequency> findPerformanceFrequencyPerPlan(Long planID) {
        return getPerformanceFrequencyDAO().findPerformanceFrequencyPerPlan(planID);
    }

    public List<PerformanceFrequency> modifiedPerfFreqBetweenDate(Calendar initialDate, Calendar finalDate, Long serialNumber) {
        return getPerformanceFrequencyDAO().modifiedPerfFreqBetweenDate(initialDate, finalDate, serialNumber);
    }
}
